//
// Created by baoch on 2024/10/8.
//
#include<stdio.h>
int main ()
{
    int a,b,c;
    scanf("%d %d %d",&a,&b,&c);
    if(a<b && b<c)    //a<b<c
    { printf("%d",c);}
    if(a<c && c<b)     //a<c<b
    {printf("%d",b);}
    if(b<a && a<c )   //b<a<c
    {printf("%d",c);}
    if(b<c && c<a)    //b<c<a
    {printf("%d",a);}
    if(c<a && a<b)  //c<a<b
    {printf("%d",b);}
    if(c<b && b<a)   //c<b<a
    {printf("%d",a);}
    return 0;
}